<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <script src="ajax.js"></script>
    <script>
      let searchAPI = `https://music.xuzhixiang.top/search`;
      ajax({
        url: searchAPI,
        type: { keywords: "你好", type: 1 },
        success(res) {
          //请求成功后调用su函数
          console.log(res);
        },
      });
      ajax({
        url: "https://music.xuzhixiang.top/comment/music",
        type: "get",
        data: { id: 186016, limit: 1 },
        success(res) {
          // 请求成功以后  调用su函数
          console.log(res);
        },
      });
    </script>
  </body>
</html>
